id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: Conditionalsconditionals3

prev  |  next  |  chance

Predict the result.
By Jacob '24

def exponent(num):
    if num > 20:
        return num ** 2
    return 25
Function Call  Return Value
exponent(1)
exponent(20)
exponent(25)
exponent(60)
exponent(3)
exponent(100)
exponent(15)
exponent(30)

Experiment with this code on Gitpod.io

⬅ Back